home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / Dots & Pixels / headers / fullscreen.h < prev    next >
C/C++ Source or Header  |  1995-09-29  |  1KB  |  43 lines

  1. #pragma once
  2.  
  3. class fullscreen : public port, public depthChange
  4. {
  5.     public:
  6.         //
  7.         // The first three constructors all work on the default graphics device.
  8.         //
  9.         fullscreen( Boolean erase = true);
  10.         fullscreen( int bitDepth, Boolean erase = true);
  11.         fullscreen( int bitDepth, CTabHandle theColorTable, Boolean erase = true);
  12.         fullscreen( GDHandle theGDHandle, int bitDepth,
  13.                             CTabHandle theColorTable, Boolean erase = true);
  14.         ~fullscreen();
  15.         void show() const;
  16.         void hide() const;
  17.  
  18.         void setentries( short start, short count, ColorSpec *theTable) const;
  19.  
  20.     protected:
  21.         WindowPtr     myWindow;
  22.         CWindowRecord myWindowRecord;
  23.         
  24.     private:
  25.         static int numInstances;
  26.         static short oldMBarHeight;
  27.         static short * const MBarHeight;
  28.         //
  29.         // 941207: thePalette is no longer the preferred way to mesh up the
  30.         // color table, but 'thePalette' is maintained for backward compatibility
  31.         // Note: 'thePalette' is obtained from 'pltt' resource #128 when the first
  32.         // fullscreen instance is created, and shared by all fullscreen instances.
  33.         // 'myPalette' is a palette created from the colortable passed to
  34.         // the constructor. It is private to a fullscreen instance and is
  35.         // discarded by fullscreen::~fullscreen.
  36.         // 
  37.         static PaletteHandle thePalette;
  38.  
  39.         PaletteHandle myPalette;
  40.  
  41.         void makeOne( CTabHandle theColorTable, Boolean erase);
  42. };
  43.